package com.gui.hospital.openfeign;

import com.gui.entity.R;
import com.gui.hospital.model.Hospital;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Author:刘舒佳
 * Date:2024/8/22
 */
@FeignClient(value = "hospital")
public interface HospitalFeign {
//    //查询医院列表
//    @GetMapping("hospital/search/{currentPage}/{pageSize}")
//    public R getHospitalList(@PathVariable("currentPage") Integer currentPage, @PathVariable("pageSize") Integer pageSize, @RequestBody Hospital hospital);

    @GetMapping("hospital/findByName")
    public List<Hospital> getHospital(@RequestParam(value="name",required = false)String name);

    @GetMapping("doctor/findByName")
    public R getDoctor(@RequestParam(value="name",required = false)String name);

    @GetMapping("hospitalDepartment/findByName")
    public R getHospitalDepartment(@RequestParam(value="name",required = false)String name);

}
